set(CMAKE_CXX_STANDARD 17)
set(QUICKJS_DIR "${PROJECT_SOURCE_DIR}/third_party/QuickJS")

# config jsi-qjs building
include_directories(
    ${QUICKJS_DIR}
    ${PROJECT_SOURCE_DIR}/src/jsi_executor
    ${PROJECT_SOURCE_DIR}/src/utils
    ${PROJECT_SOURCE_DIR}/src/vm/qjs
    ${PROJECT_SOURCE_DIR}/third_party
)

set(QUICKJS_JSI_SOURCE
  QuickJSRuntimeFactory.cpp
  QuickJSRuntime.cpp
  HostProxy.cpp
  JSIValueConverter.cpp
  QuickJSPointerValue.cpp
  city.cpp
)
add_library(quickjs_jsi STATIC ${QUICKJS_JSI_SOURCE})
